import { BasePop } from "../../Core/Base/BasePop";
import { ViewDefine } from "../../Core/EnumDefine/ViewDefine";
import { viewMgr } from "../../Core/Manager/ViewMgr";
import Login_AutoUi from "../AutoUi/Login_AutoUi";

const { ccclass, property } = cc._decorator;

@ccclass
export default class LoginPop extends BasePop {

    private auto_ui: Login_AutoUi = null
    //通常在这里处理界面业务逻辑初始化
    protected onPreShow(): void {
        this.auto_ui = this.getAutoUI(Login_AutoUi)
    }

    // 自定义消息注册
    onCustomEventInit() {

    }

    // 点击事件注册
    onClickEventInit() {
        this.addClick(this.auto_ui.btn_go, this.btnGoClick)
    }

    btnGoClick() {
        cc.dynamicAtlasManager.enabled = false
        viewMgr.openView(ViewDefine.Dynamic)
    }
}
